package com.example.excel_util.Import;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 经理对象
 *
 * @author BAO KANG
 * @date 2020/7/23 10:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department {

    private String name;
    private Staff chief = new Staff();//注意：这里一定要new，否则映射不了  department.chief.name

    @Override
    public String toString() {
        return "Department [name=" + name + ", chief=" + chief + "]";
    }
}
